package com.evil.application.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 视图应用表
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
@Data
@TableName(value = "evil_application_view")
public class ApplicationView implements Serializable {

    /**
     * id
     */
    @TableId(value = "application_view_id", type = IdType.AUTO)
    private Long applicationViewId;

    /**
     * 企业id
     */
    @TableField(value = "enterprise_id")
    private Long enterpriseId;

    /**
     * 视图key
     */
    @TableField(value = "view_key")
    private String viewKey;

    /**
     * 应用id
     */
    @TableField(value = "application_id")
    private Long applicationId;

    /**
     * 视图名称
     */
    @TableField(value = "view_name")
    private String viewName;

    /**
     * 视图标题
     */
    @TableField(value = "view_title")
    private String viewTitle;

    /**
     * 应用版本(0:发布版, 1:设计版)
     */
    @TableField(value = "application_version")
    private Integer applicationVersion;

    /**
     * 视图类型（1-报表，2-筛选，3-宫格，4-轮播，5-链接，6-文本）
     */
    @TableField(value = "view_type")
    private Integer viewType;

    /**
     * 视图配置
     */
    @TableField(value = "view_config")
    private String viewConfig;

    /**
     * 位置配置（mobile，pc）
     */
    @TableField(value = "`position`")
    private String position;

    /**
     * 源视图id
     */
    @TableField(value = "source_view_id")
    private Long sourceViewId;

    /**
     * 状态(0:禁用, 1:开启)
     */
    @TableField(value = "is_enable")
    private Integer isEnable;

    /**
     * 是否已删除(0:否, 1:是)
     */
    @TableField(value = "is_deleted")
    private Integer isDeleted;

    /**
     * 创建人
     */
    @TableField(value = "creator_id")
    private Long creatorId;

    /**
     * 创建人名字
     */
    @TableField(value = "creator_name")
    private String creatorName;

    /**
     * 修改操作人
     */
    @TableField(value = "modifier_id")
    private Long modifierId;

    /**
     * 修改操作人名字
     */
    @TableField(value = "modifier_name")
    private String modifierName;

    /**
     * 创建时间
     */
    @TableField(value = "created")
    private Date created;

    /**
     * 更新时间
     */
    @TableField(value = "updated")
    private Date updated;

    private static final long serialVersionUID = 1L;

    public static final String COL_APPLICATION_VIEW_ID = "application_view_id";

    public static final String COL_VIEW_KEY = "view_key";

    public static final String COL_APPLICATION_ID = "application_id";

    public static final String COL_VIEW_NAME = "view_name";

    public static final String COL_VIEW_TITLE = "view_title";

    public static final String COL_APPLICATION_VERSION = "application_version";

    public static final String COL_VIEW_TYPE = "view_type";

    public static final String COL_VIEW_CONFIG = "view_config";

    public static final String COL_POSITION = "position";

    public static final String COL_SOURCE_VIEW_ID = "source_view_id";

    public static final String COL_IS_ENABLE = "is_enable";

    public static final String COL_IS_DELETED = "is_deleted";

    public static final String COL_CREATOR_ID = "creator_id";

    public static final String COL_CREATOR_NAME = "creator_name";

    public static final String COL_MODIFIER_ID = "modifier_id";

    public static final String COL_MODIFIER_NAME = "modifier_name";

    public static final String COL_CREATED = "created";

    public static final String COL_UPDATED = "updated";
}